package com.oo.abstractAndInterface_6.employee;

/**
 * Manager--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-17 15:42
 **/
public class Manager extends Employee{

    private int  longevity;

    public Manager(String name, int age, String sex, int id,int longevity) {
        super(name,age,sex,id);
        this.longevity = longevity;
    }
    @Override
    public void sayHello() {
        System.out.println("Hello everyone I am "+getName()+"，"+getAge()+"old\nI have"+getLongevity()+"years experience in managing");
    }

    public void check(Blackcoat blackcoat, String msg, int score) {
        System.out.println("to"+blackcoat.getName()+"the annual assessment of work\nEvaluation"+msg+"\nEvaluation score"+score);
    }

    public int getLongevity() {
        return longevity;
    }

    public void setLongevity(int longevity) {
        this.longevity = longevity;
    }
}
